package models

import (
	"time"

	"github.com/kataras/iris/v12"
)

type BaseModel interface {
	TableName() string
}

const (
	OK        = 200
	Good      = 200
	Success   = 200
	Bad       = 400
	Failure   = 400
	Not_Found = 404
)

func GenIndex(entry string) iris.Map {
	return iris.Map{
		"code":  OK,
		"entry": entry,
		"time":  time.Now().Format("2006-01-02 15:04:05")}
}
